import { request } from '@/network/request'

// export function saveuser(age, email, idcard, occupation, password, phone, sex, username) {
//   return request({
//     headers: {
//       // "Content-Type": "application/x-www-form-urlencoded"
//       "Content-Type": "application/json"
//     },
//     url: '/hotelsystem/user/add',
//     method: 'post',
//     params: {
//       "age": age,
//       "email": email,
//       "idcard": idcard,
//       "occupation": occupation,
//       "password": password,
//       "phone": phone,
//       "sex": sex,
//       "username": username
//     }
//   });
// };
export const saveuser = data => {
  return request({
    headers: {
      "Content-Type": "multipart/form-data"
      // "Content-Type": "application/json"
    },
    url: '/hotelsystem/user/add',
    method: 'post',
    data: data,
  })
}
